#include "DxLib.h"
#include "Camera.h"
#include "../Framework/Input.h"

Camera::Camera() 
	:Singleton(this){
	x = 0;
	y = 0;
}

Camera::~Camera(){

}

void Camera::Update(float delta){

	if (Input::GetInstance().IsKeyDown(KEY_INPUT_J)){
		x-=15;
	}
	if (Input::GetInstance().IsKeyDown(KEY_INPUT_L)){
		x+=15;
	}
	if (Input::GetInstance().IsKeyDown(KEY_INPUT_I)){
		y-=15;
	}
	if (Input::GetInstance().IsKeyDown(KEY_INPUT_K)){
		y+=15;
	}
}

int Camera::GetX(){
	return x;
}

int Camera::GetY(){
	return y;
}